<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        div {
            display: flex;
            align-items: center;
            height: 280px;
            width: 520px;
        }

        ul {

            position: absolute;
            left: 192px;
            top: 220px;
        }

        li {
            display: inline-block;
            list-style-type: none;
            width: 10px;
            height: 10px;
            background: #b2b2b2;
            border-radius: 50%;
            cursor: pointer;
        }

        .clear:after {
            content: '';
            display: block;
            clear: both;
        }

        a {
            display: none;
        }
    </style>
    <script src="../jquery/jquery-3.4.1.min.js"></script>
    <script>
        $(function () {
            var i = 0;

            function time() {
                $("div#tu a").hide();
                $("div#anniu ul li").css("background", "#b2b2b2")
                $("div#tu a").eq(i % 5).show();
                $("div#anniu ul li").eq(i % 5).css("background", "#ff5000")
                i++;
            }
            window.interval = setInterval(time, 1000);
            $("div#tu a img").mouseover(function () {
                clearInterval(interval);
            });
            $("div#tu a img").mouseout(function () {
                window.interval = setInterval(time, 1000);
            });
        });
    </script>
</head>
<body>
<div class="clear" id="tu">
    <a href="#"><img src="轮播/1.jpg"></a>
    <a href="#"><img src="轮播/2.jpg"></a>
    <a href="#"><img src="轮播/3.jpg"></a>
    <a href="#"><img src="轮播/4.jpg"></a>
    <a href="#"><img src="轮播/5.jpg"></a>
</div>
<div id="anniu">
    <ul>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
    </ul>
</div>
</body>
</html>